//
//  SettingTableViewCell.m
//  LightControl
//
//  Created by CKF on 2025/8/8.
//

#import "SettingTableViewCell.h"

@implementation SettingTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        self.selectionStyle = UITableViewCellSelectionStyleNone;
        _imgView = [[UIImageView alloc]initWithFrame:CGRectMake(20, 23, 24, 24)];
        [self.contentView addSubview:_imgView];
    
        
        _titleLabel = [[UILabel alloc]initWithFrame:CGRectMake(CGRectGetMaxX(_imgView.frame)+20, 15, KScreenWidth-CGRectGetMaxX(_imgView.frame)-50, 22)];
        [self.contentView addSubview:_titleLabel];
        _titleLabel.font = [UIFont systemFontOfSize:17];
        _titleLabel.textColor = RGB(51, 51, 51);
        
        _detailLabel =  [[UILabel alloc]initWithFrame:CGRectMake(CGRectGetMaxX(_imgView.frame)+20, 45, KScreenWidth-CGRectGetMaxX(_imgView.frame)-50, 20)];
        [self.contentView addSubview:_detailLabel];
        _detailLabel.font = [UIFont systemFontOfSize:15];
        _detailLabel.textColor = RGB(102, 102, 102);
    }
    return self;
}



@end
